package xyz.eden.boot.push.config;

import feign.RequestInterceptor;
import feign.RequestTemplate;
import org.springframework.http.HttpHeaders;
import org.springframework.stereotype.Component;

/**
 * OpenFeignConfig
 *
 * @author gavin
 * @version 1.0
 * @descriptor
 * @date 2023/7/24 22:04
 */
@Component
public class OpenFeignInterceptor implements RequestInterceptor {

    @Override
    public void apply(RequestTemplate requestTemplate) {
        requestTemplate.header(HttpHeaders.AUTHORIZATION, "token_" + System.currentTimeMillis());
    }
}
